//
//  Book.m
//  03_NSStringHomework
//
//  Created by 徐昊 on 16/7/6.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "Book.h"

@implementation Book

- (instancetype)initWithPrice:(NSString *)price name:(NSString *)name {
    self = [super init];
    if (self) {
        _price = price;
        _name = name;
    }
    return self;
}
+ (instancetype)bookWithPrice:(NSString *)price name:(NSString *)name {
    return [[[Book alloc] initWithPrice:price name:name] autorelease];
}

@end
